package com.github.chxiaowu.mongo.dto;

import java.util.List;

import org.bson.types.ObjectId;

public class PersonDto extends BaseDto {

	private static final long serialVersionUID = -5456688945772946872L;

	private ObjectId id;

	private String name;

	private Integer age;

	private AddressDto addr;

	private List<ObjectId> friends;

	public ObjectId getId() {
		return id;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public AddressDto getAddr() {
		return addr;
	}

	public void setAddr(AddressDto addr) {
		this.addr = addr;
	}

	public List<ObjectId> getFriends() {
		return friends;
	}

	public void setFriends(List<ObjectId> friends) {
		this.friends = friends;
	}

}
